package com.newhis.service;

import com.newhis.dao.MainDao;
import com.newhis.entity.SpUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service层
 */
@Service
public class MainService {
    @Autowired
    private MainDao mainDao;

    public SpUser getUserById(Integer id) {
        return mainDao.getUserById(id);
    }

    public boolean setUserName(Integer id, String name) {
        return mainDao.setUserName(id, name);
    }

    public List<SpUser> getUserList() {
        return mainDao.getUserList();
    }
}
